package springboot.common.memcache;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**  
* <p>Description:memcache属性文件 </p>  
* @author wjt  create
* @date 2018年12月29日 下午1:54:40
*/ 
@Component
@ConfigurationProperties(prefix="memcache")
public class MemcacheProperties {
	
	private String[] servers;
	 
    private Integer[] weights;
 
    private int initConn;
    
    private int minConn;
    
    private int maxConn;
 
    private long maintSleep;
 
    private boolean nagle;
 
    private int socketTO;

	public String[] getServers() {
		return servers;
	}

	public void setServers(String[] servers) {
		this.servers = servers;
	}

	public Integer[] getWeights() {
		return weights;
	}

	public void setWeights(Integer[] weights) {
		this.weights = weights;
	}

	public int getInitConn() {
		return initConn;
	}

	public void setInitConn(int initConn) {
		this.initConn = initConn;
	}

	public int getMinConn() {
		return minConn;
	}

	public void setMinConn(int minConn) {
		this.minConn = minConn;
	}

	public int getMaxConn() {
		return maxConn;
	}

	public void setMaxConn(int maxConn) {
		this.maxConn = maxConn;
	}

	public long getMaintSleep() {
		return maintSleep;
	}

	public void setMaintSleep(long maintSleep) {
		this.maintSleep = maintSleep;
	}

	public boolean isNagle() {
		return nagle;
	}

	public void setNagle(boolean nagle) {
		this.nagle = nagle;
	}

	public int getSocketTO() {
		return socketTO;
	}

	public void setSocketTO(int socketTO) {
		this.socketTO = socketTO;
	}
}
